StupidBeauty
Read times:344Posted at:Tue Apr 3 16:30:28 2012
- no title specified

Wt3.2.1文档翻译:Wt::WMessageResourceBundle类参考,Wt::WMessageResourceBundle Class Reference

成员函数文档

void Wt::WMessageResourceBundle::use

(

const std::string &

path,

bool

loadInMemory = true

)

添加并使用一个(系列的)消息资源文件。

这个path 并不是一个统一资源标识符,其中的相对路径会按照服务器的工作目录进行解析。这些XML 文件不需要放置在网页服务器的文档根目录中。

假设你传递的path 参数是:/到文件/的/路径,则会使用以下消息资源文件:

  • •./到文件/的/路径.xml (默认,英语)

  • •./到文件/的/路径_nl.xml (荷兰语)

  • •./到文件/的/路径_fr.xml (法语)

  • •.如此类推

最终使用的消息文件将取决于程序的语系信息。

参考:

WApplication::locale()

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4